package com.yuntai.pms.model.api;


import com.yuntai.pms.model.dto.system.DictQueryDto;
import com.yuntai.pms.model.dto.system.SysDictionaryDto;
import com.yuntai.pms.model.enums.DictionaryGroup;
import com.yuntai.pms.model.param.Pager;
import com.yuntai.pms.model.result.PageResult;
import com.yuntai.pms.model.vo.system.SysDictionaryVo;

import java.util.List;


/**
 * @ClassName: SysDictionaryService
 * @Description: 数据字典
 * @author wangze@hsyuntai.com
 * @date 2017年8月1日 下午9:45:51
 */
public interface SysDictionaryService {

    Pager pageFindSysDictionaryGrid(Pager page, SysDictionaryDto sysDictionaryDto);

    PageResult<SysDictionaryVo> searchDictGroupPageByDto(DictQueryDto dto);

    List<SysDictionaryVo> getSysDictionaryList(SysDictionaryDto sysDictionaryDto);

    Boolean deleteByPrimaryKey(SysDictionaryDto sysDictionaryDto);

    Boolean insertSysDict(SysDictionaryDto sysDictionaryDto);

    Boolean updateByPrimaryKey(SysDictionaryDto sysDictionaryDto);

    int countOneSysDict(SysDictionaryDto sysDictionaryDto);

    List<SysDictionaryVo> getProvince(SysDictionaryDto sysDictionaryDto);

    List<SysDictionaryVo> getCity(SysDictionaryDto sysDictionaryDto);

    List<SysDictionaryVo> getArea(SysDictionaryDto sysDictionaryDto);

    Boolean updateDictGroup(SysDictionaryDto sysDictionaryDto);

    SysDictionaryVo getDictionary(SysDictionaryDto sysDictionaryDto);

    SysDictionaryVo getProvinceByCity(SysDictionaryDto sysDictionaryDto);

    List<SysDictionaryVo> getSysDictionaryList(DictionaryGroup dg);

    PageResult<SysDictionaryVo> searchPageDataByDto(DictQueryDto dto);
}
